﻿
using System;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using XnaColor = Microsoft.Xna.Framework.Color;
using Colonisator.Classes;
namespace ColonisatorGame
{    
    public abstract class IslandInteractionObject<T, U> : InteractionObject
        where T : Ile
        where U : AnchorageInteractionObject
    {
        public T AffiliateIsland
        {
            get
            {
                return Partie.GetInstance().DonnerIle<T>();
            }
        }

        public U AffiliateAnchorage { get; set; }
        
        public IslandInteractionObject(string texturePath, U anchorageInteractionObject)
            : base(texturePath)
        {
            AffiliateAnchorage = anchorageInteractionObject;
        }
    }
}
